import java.util.Scanner;
public class guess {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int number =(int) (Math.random()*10);
        int guess;
        do {
            System.out.printf("guess a number(0--9):");
            guess = scanner.nextInt();
            if(guess!=number)
            {
                System.out.printf("wrong%n");
            }

        }while(guess!=number);

        System.out.printf("right%n");
    }
}


